home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbwiz13.zip
/
SOURCE.ZIP
/
REDIR.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-07-14
|
2KB
|
52 lines
comment #
+----------------------------------------------------------------------+
| |
| QBWiz Copyright (c) 1990-1992 Thomas G. Hanlin III |
| |
| QuickBasic Access Library |
| |
+----------------------------------------------------------------------+
#
public REDIRIN, REDIROUT
.model medium
.code
REDIROUT proc ; see if output is redirected
mov al,b$IOFLAG ;
shr ax,1 ;
shr ax,1 ;
mov ax,0 ;
rcl ax,1 ;
neg ax ;
ret ;
REDIROUT endp ; see if output is redirected
REDIRIN proc ; see if input is redirected
mov al,b$IOFLAG ;
shr ax,1 ;
mov ax,0 ;
rcl ax,1 ;
neg ax ;
ret ;
REDIRIN endp ; see if input is redirected
.data
extrn b$IOFLAG: byte
end